package io.renren.modules.medical.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * 疾病信息实体
 * @author luosheng
 * @date 2023-05-13 16:11:38
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("patient_disease_information")
public class PatientDiseaseInformationEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;


	/**
	 * patient_basic表的id
	 */
	@NotNull(message = "添加或修改时basicId不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Long patientBasicId;
	/**
	 * 体温
	 */
	@NotNull(message = "添加或修改时体温不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Float temperature;
	/**
	 * 呼吸频率
	 */
	@NotNull(message = "添加或修改时呼吸频率不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Float breath;
	/**
	 * 血压
	 */
	@NotNull(message = "添加或修改时血压不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Float bloodPressure;
	/**
	 * 脉搏
	 */
	@NotNull(message = "添加或修改时脉搏不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Float pulse;
	/**
	 * 侧别
	 */
	@NotNull(message = "添加或修改时侧别不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Integer bodySide;
	/**
	 * koa描述
	 */
	@NotNull(message = "添加或修改时koa描述不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Long koaDescribeId;
	/**
	 * 过敏史
	 */
	private String allergyHistory;
	/**
	 * 既往史id
	 */
	@Null(message = "添加时既往史id为空", groups = {AddGroup.class, UpdateGroup.class})
	private Long previousHistoryId;
	/**
	 * 是否第一次治疗
	 */
	@NotNull(message = "添加或修改时是否第一次治疗不能为空", groups = {AddGroup.class, UpdateGroup.class})
	@TableField("is_first_treatment")
	private Integer isFirstTreatment;
	/**
	 * koa用药历史id
	 */
	@Null(message = "添加时koa用药历史id为空", groups = {AddGroup.class, UpdateGroup.class})
	private Long koaDrugHistoryId;
	/**
	 * koa非用药史id
	 */
	@Null(message = "添加时koa非用药史id为空", groups = {AddGroup.class, UpdateGroup.class})
	private Long koaNonDrugHistoryId;
	/**
	 * koa手术史id
	 */
	@Null(message = "添加时koa手术史id为空", groups = {AddGroup.class, UpdateGroup.class})
	private Long koaOperationHistoryId;
}
